<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUserGroupTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('st_user_group', function (Blueprint $table) {
            $table->increments('id');
            $table->string('account',32)->comment('创建者account');
            $table->string('name',20)->comment('群组名称');
            $table->string('notice',320)->default('')->comment('群公告');
            $table->unsignedTinyInteger('status')->default(1)->comment('群组窗台 0解散1正常');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('st_user_group');
    }
}
